﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">

    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/layer")
    @Scripts.Render("~/bundles/common")
</head>
<body style="overflow: hidden;">
    <div id="main" style="width: auto;">
        @RenderPage("_Header.cshtml")
        <div class="container-fluid">
            <div id="content" class="row-fluid">
                @Html.Partial("_LeftMenu")
                <div id="openClose" class="close" style="height: 418px;">&nbsp;</div>
                <div id="right">
                    <iframe id="mainFrame" name="mainFrame" src="" style="width: 100%; overflow: hidden;" scrolling="yes" frameborder="0"></iframe>
                    @RenderBody()
                </div>
            </div>
            @Html.Partial("_Footer")
        </div>
    </div>
    <script type="text/javascript">
        var leftWidth = "180"; // 左侧窗口大小
        function wSize() {
            var minHeight = 500, minWidth = 980;//最低分辨率
            var strs = getWindowSize().toString().split(",");
            $("#menuFrame, #mainFrame, #openClose").height(
                (strs[0] < minHeight ? minHeight : strs[0])
                - $("#header").height() - $("#footer").height()
                - 32);
            $("#openClose").height($("#openClose").height() - 5);
            if (strs[1] < minWidth) {
                $("#main").css("width", minWidth - 10);
                $("html,body").css({
                    "overflow": "auto",
                    "overflow-x": "auto",
                    "overflow-y": "auto"
                });
            } else {
                $("#main").css("width", "auto");
                $("html,body").css({
                    "overflow": "hidden",
                    "overflow-x": "hidden",
                    "overflow-y": "hidden"
                });
            }
            $("#right").width(
                $("#content").width() - $("#left").width()
                - $("#openClose").width() - 5);
        }
    </script>
    <script src="~/Scripts/wsize.min.js"></script>
    @RenderSection("scripts", required: false)
</body>
</html>
